﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// SysAccessTokenInfo管理表
    /// </summary>
    [ExLanguageKey("SysAccessTokenInfo")]
    public partial class SysAccessTokenInfo
    {
        #region 数据库字段

        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 帐号名
        /// </summary>
        [ExLanguageKey("Uid")]
        public string Uid { get; set; }

        /// <summary>
        /// 帐号密码
        /// </summary>
        [ExLanguageKey("Pwd")]
        public string Pwd { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("AccessToken")]
        public string AccessToken { get; set; }

        /// <summary>
        /// AccessToken生成时间
        /// </summary>
        [ExLanguageKey("CreateDateTime")]
        public DateTime? CreateDateTime { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        [ExLanguageKey("ExpiryDateTime")]
        public DateTime? ExpiryDateTime { get; set; }

        /// <summary>
        /// 白名单IP;多个以,隔开(为空或空字符串不做验证)
        /// </summary>
        [ExLanguageKey("IpAddress")]
        public string IpAddress { get; set; }

        /// <summary>
        /// 最后修改人
        /// </summary>
        [ExLanguageKey("UpdateSysEmployeeID")]
        public int? UpdateSysEmployeeID { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [ExLanguageKey("UpdateDate")]
        public DateTime UpdateDate { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [ExLanguageKey("IsDel")]
        public bool IsDel { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }

        #endregion
    }
}
